<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><?php echo $title; ?></title>
	<?php if ($keywords) { ?>
	<meta name="keywords" content="<?php echo $keywords; ?>" />
	<?php } ?>
	<?php if ($description) { ?>
	<meta name="description" content="<?php echo $description; ?>" />
	<?php } ?>
	<base href="<?php echo $base; ?>" />
	<?php if ($icon) { ?>
	<link href="<?php echo $icon; ?>" rel="icon" />
	<?php } ?>
	<?php foreach ($links as $link) { ?>
	<link href="<?php echo str_replace('&', '&amp;', $link['href']); ?>" rel="<?php echo $link['rel']; ?>" />
	<?php } ?>
	<!-- CSS -->
	<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/main.css" />
	<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/prettyPhoto.css" />
	<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/stickytooltip.css" />
	
	<!-- JS -->
	<script src="catalog/view/javascript/jquery-1.3.2.min.js" type="text/javascript"></script>
	<script src="catalog/view/javascript/jquery.easing.1.3.js" type="text/javascript"></script>
	<script src="catalog/view/javascript/kwicks-1.js" type="text/javascript"></script>
	<script type="text/javascript" src="catalog/view/javascript/stickytooltip.js"></script>
	<script type="text/javascript" src="catalog/view/javascript/jquery.js"></script>
	<script type="text/javascript" src="catalog/view/javascript/jquery.color.js"></script>
	<script src="catalog/view/javascript/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$().ready(function() {
			$('.kwicks').kwicks({
				max : 448,
				spacing : 0,
				sticky : false,
				event : 'mouseover'				
			});
			
			$("a[rel^='prettyPhoto']").prettyPhoto({theme: 'dark_rounded',slideshow:5000, autoplay_slideshow:true, deeplinking: false});

			 
		});
		
	</script>	
</head>
<body>
	<div id="header">
		<div id="slider-shadow">
			<div class="wrapper"><?php echo $button;?>
				<div id="primary-nav" class="sf-menu clearfix" role="navigation">
					<div id="dropmenu" class="menu-primary-container">
						<ul id="menu-primary" class="menu">
							<li  class="menu-item menu-item-type-custom current-menu-item current_page_item menu-item-home"><a href="http://cms.template-help.com/wordpress_31775/">Trang Chủ</a></li>
							<li  class="menu-item menu-item-type-post_type"><a href="http://cms.template-help.com/wordpress_31775/?page_id=1113">Giới Thiệu</a></li>
							<li  class="menu-item menu-item-type-post_type"><a href="http://cms.template-help.com/wordpress_31775/?page_id=1037">Sản Phẩm</a></li>
							<li  class="menu-item menu-item-type-post_type"><a href="http://cms.template-help.com/wordpress_31775/?page_id=1040">Tin Tức</a></li>
							<li  class="menu-item menu-item-type-post_type"><a href="http://cms.template-help.com/wordpress_31775/?page_id=1042">Liên Hệ</a></li>
						</ul>
					</div>					
				</div>

			<!-- END #primary-nav -->
				
			<div id="header-widget-area" class="widget-area" >
				<ul class="xoxo">
					<li id="search-2" class="widget widget_search">
						<form action="<?php echo $advanced;?>" id="searchform" method="get" >
						    <?php if($advanced==HTTP_SERVER . 'index.php?route=product/search'){?>
							<input type="hidden" name="route" value="product/search" />
							<?php }?>
							<input id="s" name="keyword" type="text">
							<input value="search" id="searchsubmit" type="submit">
						</form>
						
					</li>						
				</ul>
			</div>
			<!-- kwicks gallery begin -->
							 
				<div id="slider" align="center">
					<ul class="kwicks horizontal">	
						<li ><img src="<?php echo $link_hinh;?>kwick-1act2.jpg"  alt="kwick-1act" title="kwick-1act" height="370" width="448"><span></span></li>
																											
						<li ><img src="<?php echo $link_hinh;?>kwick-2act2.jpg" alt="kwick-2act" title="kwick-2act" height="370" width="448"><span></span></li>
																												
						<li ><img src="<?php echo $link_hinh;?>kwick-3act.jpg" alt="kwick-3act" title="kwick-3act" height="370" width="448"><span></span></li>
																												
						<li ><img src="<?php echo $link_hinh;?>kwick-4act.jpg" alt="kwick-4act" title="kwick-4act" height="370" width="448"><span></span></li>
																											
						<li ><img src="<?php echo $link_hinh;?>kwick-5act1.jpg" alt="kwick-5act" title="kwick-5act" height="370" width="448"><span></span></li>
																												
						<li ><img src="<?php echo $link_hinh;?>kwick-6act.jpg" alt="kwick-6act" title="kwick-6act" height="370" width="448"><span></span></li>
											
					</ul>
										
				</div>
							  
			<!-- kwicks gallery end -->

			</div>
		</div>

	</div><!--END #header-->

<script type="text/javascript"><!--

function moduleSearch() {	

	url = 'index.php?route=product/search';
		
	var filter_keyword = $('#s').attr('value')
	
	if (filter_keyword) {
		url += '&keyword=' + filter_keyword;
	}
	
	parent.location = url;
	
}
//--></script>

